import Vue from 'vue'
import VueRouter from 'vue-router'

import One from '../views/Second/One.vue'
import Two from '../views/Second/Two.vue'
import Three from '../views/Second/Three.vue'
import Four from '..//views/One/Two_one.vue'
import Five from '../views/One/Two_two.vue'
import Six from '../views/One/Two_three.vue'
import Seven from '../views/Third/Three_one.vue'
import Eight from '../views/Third/Three_two.vue'
import Nine from '../views/Third/Three.Three.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/one',
    },
    {
        path: '/one',
        component: One,
    },
    {
        path: '/two',
        component: Two,
    },
    {
        path: '/three',
        component: Three,
        redirect: '/three/four',
        children:[
            {
                path: 'four',
                component: Four,
                
            },
            {
                path: 'five',
                component: Five,
            },
            {
                path: 'six',
                component: Six,
                redirect: '/three/six/seven',
                children: [
                   {
                    path : 'seven',
                    component: Seven,
                   },
                   {
                    path : 'eight',
                    component: Eight,
                   },
                   {
                    path : 'nine',
                    component: Nine,
                   }
                ]
            },

        ]
    },
]

const router = new VueRouter({
    routes
})

export default router
 